package me.landery.modules.sinco.service.dto;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import me.landery.base.BaseEntity;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author cc.w
 * @Date 2022/6/7 21:38
 * @Version 1.0
 */
@Getter
@Setter
public class UserSmallDto implements Serializable {
    @NotNull(groups = BaseEntity.Update.class)
    private Long id;
    @NotBlank
    private String username;
    @NotBlank
    private String nickName;
    @Email
    @NotBlank
    private String email;
    @NotBlank
    private String phone;
    private String gender;
    private String avatarName;
    private String avatarPath;
}
